package sv.gob.mh.dgii.service.rc;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sv.gob.mh.dgii.dao.hibernate.Dao;
import sv.gob.mh.dgii.dao.rc.RcRepresentanteDao;
import sv.gob.mh.dgii.model.RcRepresentante;
import sv.gob.mh.dgii.service.BaseService;

@Service
public class RcRepresentanteServiceImpl extends BaseService implements RcRepresentanteService {

    @Autowired
    private RcRepresentanteDao rcRepresentanteDao;

    @Override
    public Dao getDao() {
        return rcRepresentanteDao; 
	} 

    @Override
    public List<RcRepresentante> obtenerRepresentantesPorNit(String nit) {
        return rcRepresentanteDao.obtenerRepresentantesPorNit(nit);
    }
}